#!/bin/sh

ifconfig wlan0 up
sleep 8
mkdir -p /var/run/wpa_supplicant
wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf -B
if [ $? -eq 0 ]
then
	udhcpc -i wlan0
	echo "==========STA mode init success========="
fi
